package org.example.myleet.p995;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(1 == solution.minKBitFlips(new int[]{0}, 1));
        Assert.isTrue(0 == solution.minKBitFlips(new int[]{1}, 1));
        Assert.isTrue(2 == solution.minKBitFlips(new int[]{0,1,0}, 1));
        Assert.isTrue(-1 == solution.minKBitFlips(new int[]{1,1,0}, 2));
        Assert.isTrue(3 == solution.minKBitFlips(new int[]{0,0,0,1,0,1,1,0}, 3));
        Assert.isTrue(-1 == solution.minKBitFlips(new int[]{0,0,0,1,0,1,1}, 3));
    }
}
